relocate mem_access and mem_event into common
authorTamas K Lengyel <tklengyel@sec.in.tum.de>
Fri, 26 Sep 2014 13:49:26 +0000 (15:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 26 Sep 2014 13:49:26 +0000 (15:49 +0200)
commitaa673e9fa00c1f1fa90dfd531c89078b7afef7d3
tree3572d971a7c8aa4c44a6a5252ad65fd9b55d113a
parent2c141a997fbca68d5b8c8b6238cb216a857f351e
relocate mem_access and mem_event into common

In preparation to add support for ARM LPAE mem_event, relocate mem_access,
mem_event and auxiliary functions into common Xen code.
This patch makes no functional changes to the X86 side, for ARM mem_event
and mem_access functions are just defined as placeholder stubs, and are
actually enabled later in the series.

Edits that are only header path adjustments:
   xen/arch/x86/domctl.c
   xen/arch/x86/mm/hap/nested_ept.c
   xen/arch/x86/mm/hap/nested_hap.c
   xen/arch/x86/mm/mem_paging.c
   xen/arch/x86/mm/mem_sharing.c
   xen/arch/x86/mm/p2m-pod.c
   xen/arch/x86/mm/p2m-pt.c
   xen/arch/x86/mm/p2m.c
   xen/arch/x86/x86_64/compat/mm.c
   xen/arch/x86/x86_64/mm.c

Makefile adjustments for new/removed code:
   xen/common/Makefile
   xen/arch/x86/mm/Makefile

Relocated prepare_ring_for_helper and destroy_ring_for_helper functions:
   xen/include/xen/mm.h
   xen/common/memory.c
   xen/include/asm-x86/hvm/hvm.h
   xen/arch/x86/hvm/hvm.c

Code movement of mem_event and mem_access:
    xen/arch/x86/mm/mem_access.c -> xen/common/mem_access.c
    xen/arch/x86/mm/mem_event.c -> xen/common/mem_event.c
    xen/include/asm-x86/mem_access.h -> xen/include/xen/mem_access.h
    xen/include/asm-x86/mem_event.h -> xen/include/xen/mem_event.h

Signed-off-by: Tamas K Lengyel <tklengyel@sec.in.tum.de>
Acked-by: Tim Deegan <tim@xen.org>
32 files changed:
MAINTAINERS
config/x86_32.mk
config/x86_64.mk
xen/Rules.mk
xen/arch/x86/domctl.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/mm/Makefile
xen/arch/x86/mm/hap/nested_ept.c
xen/arch/x86/mm/hap/nested_hap.c
xen/arch/x86/mm/mem_access.c [deleted file]
xen/arch/x86/mm/mem_event.c [deleted file]
xen/arch/x86/mm/mem_paging.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/mm/p2m-pod.c
xen/arch/x86/mm/p2m-pt.c
xen/arch/x86/mm/p2m.c
xen/arch/x86/x86_64/compat/mm.c
xen/arch/x86/x86_64/mm.c
xen/common/Makefile
xen/common/domain.c
xen/common/mem_access.c [new file with mode: 0644]
xen/common/mem_event.c [new file with mode: 0644]
xen/common/memory.c
xen/include/asm-arm/mm.h
xen/include/asm-x86/hvm/hvm.h
xen/include/asm-x86/mem_access.h [deleted file]
xen/include/asm-x86/mem_event.h [deleted file]
xen/include/asm-x86/mm.h
xen/include/xen/mem_access.h [new file with mode: 0644]
xen/include/xen/mem_event.h [new file with mode: 0644]
xen/include/xen/mm.h